<?php

namespace App\Http\Controllers\Student;

use App\Criteria\Student\Resume\StudentResumeBaseQueryCriteria;
use App\Http\Controllers\Controller;
use App\Http\Controllers\CurlRecordMethod;
use App\Http\Requests\Student\StudentResumeBaseRequest;
use App\Repositories\Student\StudentResumeRepository;
use App\Validators\Student\StudentResumeValidator;
use Illuminate\Support\Facades\Input;


class StudentResumesController extends Controller
{

    use CurlRecordMethod;

    protected $index_page='student.resume.resumeMain';
    protected $add_page='student.resume.resumeAdd';
    protected $edit_page='student.resume.resumeEdit';

    protected $repository;
    protected $validator;
    protected $request;

    public function __construct(StudentResumeRepository $repository, StudentResumeValidator $validator,StudentResumeBaseRequest $request)
    {
        $this->repository = $repository;
        $this->validator  = $validator;
        $this->request =$request;
    }

    public function getBaseQueryCriteria(){
        return new StudentResumeBaseQueryCriteria;
    }

    protected function get_add_data(){
        $student_id=Input::get('student_id');
        return view($this->add_page,compact('student_id'));
    }


}
